feat: URL 파라미터 동기화 (pushState) — #9#17
Open
testofschool wants to merge 1 commit into
Open
Conversation
jih0-kim
requested changes
May 17, 2026
Member
jih0-kim
left a comment
There was a problem hiding this comment.
URL 기능 추가 감사합니다. 아래 코멘트 사항 확인 부탁드려요!
| </script> | ||
| </body> | ||
| </html> | ||
| </html> No newline at end of file |
Member
There was a problem hiding this comment.
POSIX 표준에서는 파일을 텍스트 라인의 연속으로 정의합니다. 파일의 끝(EOF)에 개행 문자가 없으면 마지막 줄을 올바른 라인으로 인식하지 못하는 오류가 발생할 수 있습니다. ENTER를 추가해서 수정 요청 드립니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
이슈: #9
구현 내용
syncToURL()메서드를 추가하여, 상태 변경 시history.pushState()로 URL을 업데이트합니다.loadFromURL()메서드를 추가하여, 공유받은 URL의 쿼리 파라미터를 파싱해 필터를 자동 적용합니다._handlePopState()핸들러를 추가하여, 뒤로가기/앞으로가기 시 URL에서 상태를 복원합니다.x-model.debounce.300ms를 적용하여 타이핑 중 불필요한 히스토리 생성을 방지했습니다.tab,sort파라미터는 허용 목록으로 검증하여 잘못된 값(?tab=hacked)은 무시됩니다.?learning=VLA,IL)을 사용합니다.syncToURL,loadFromURL, 허용 목록에// 필터 추가 시 여기도 수정주석을 추가했습니다.수정 파일
docs/index.html— 이 파일만 수정 (Python, YAML, GitHub Actions 변경 없음)pushState 채택 근거
이슈에서는
replaceState를 제안했으나, 오프라인 미팅에서 필터 히스토리를 뒤로가기로 탐색할 수 있는 것이 유용하다는 의견이 있어pushState로 변경했습니다.popstate이벤트 핸들러를 함께 구현하여 뒤로가기/앞으로가기 시 UI가 정상 복원됩니다.URL 파라미터 목록
tabactiveTabmodels?tab=datasetsqsearch?q=LeRobotsortsortBystars?sort=year_descyearfilters.years[]?year=2023,2024categoryfilters.categories[]?category=manipulationhardwarefilters.hardware[]?hardware=humanoidlearningfilters.learning[]?learning=VLA,ILsourcefilters.sources[]?source=realtoolTypefilters.toolTypes[]?toolType=physics_engine테스트
?learning=VLA?tab=hacked